<%@ include file="../common.jsp"%>

<c:choose>
	<c:when test="${size eq 0}">
		No Records Found.
	</c:when>
	<c:otherwise>
		<div style="width: 40%;">
			<table class="viewDetails">
				<tr class="adminTableMainHeaderColor tableChildHeaderFont">
					<th colspan="3" align="center"> LIST OF DOCUEMNT TYPE(S) </th>
				</tr>
				<tr class="heading" align="center">
					<th> Type Code </th>
					<th> Type Name </th>
				</tr>	
			
				<c:forEach items="${docTypeMap}" var="docTypeMap" varStatus="loop">
					<c:set var="tabColor" value="odd"></c:set>
				     	<c:if test="${(loop.index % 2) eq 0}">
				        	<c:set var="tabColor" value="even"></c:set>
				        </c:if>
				<tr class="${tabColor}">
					<td> ${docTypeMap.value.dtCode} </td>
					<td> ${docTypeMap.value.dtName} </td>
				</tr>	
				</c:forEach>	
			</table>
		</div>
	</c:otherwise>
</c:choose>